Skip to content

feat(Prompt): add claude action#255

Merged
IgorShevchik merged 1 commit into
mainfrom
sync/nuxt-7bdcb13
Jul 10, 2026
Merged

feat(Prompt): add claude action#255
IgorShevchik merged 1 commit into
mainfrom
sync/nuxt-7bdcb13

Conversation

@IgorShevchik

Copy link
Copy Markdown
Collaborator

Upstream

7bdcb13feat(Prompt): add claude action (#6693)

Change

prose/Prompt.vue gains a claude action alongside copy/cursor/windsurf:

  • The copy button is always shown — default actions[], and a new actions computed forces copy in ([...new Set(['copy', ...props.actions])]).
  • Adds openInClaude() (claude://code/new?q=<prompt>); the openIn* helpers are condensed to encodeURIComponent one-liners.
  • Template v-ifs switch from props.actions to the actions computed; a Claude button is added.
  • Docs prompt.md updated (copy always displayed; example uses cursor+claude).

b24ui matched upstream (adapted to b24ui/B24Button/appConfig.b24ui/icons dictionary).

Deviation — inline ClaudeIcon

Upstream uses the iconify i-simple-icons-claude. b24ui has no @nuxt/icon/iconify and no Claude brand icon in @bitrix24/b24icons-vue, so — mirroring the existing hand-rolled inline CursorIcon/WindsurfIcon in dictionary/icons.ts — a ClaudeIcon inline-SVG IconComponent is added using the simple-icons claude path (fetched verbatim). The Claude button uses :icon="icons.ClaudeIcon" + color="air-secondary-accent-2" (matching Cursor/Windsurf).

Tests

No upstream Prompt spec change. 14 ProsePrompt snapshots updated — benign: existing cases gain the Claude button's <!--v-if--> placeholder (inactive unless claude requested), and the copy button now always renders via the computed. Suite 5289 passed.

Verify (CI=true)

dev:prepare · lint · typecheck · test · build — all green.

Ledger

🤖 Generated with Claude Code


Generated by Claude Code

Port of upstream nuxt/ui 7bdcb13 (#6693).

prose/Prompt.vue gains a `claude` action. The copy button is now always shown
(default actions → [] with a computed that forces copy in); adds openInClaude()
(claude://code/new?q=…) and condenses the openIn* helpers. Docs updated.

Deviation: upstream uses the iconify `i-simple-icons-claude`; b24ui has no
@nuxt/icon and no Claude brand icon in b24icons, so a `ClaudeIcon` inline SVG
(simple-icons `claude` path) is added to dictionary/icons.ts, mirroring the
existing inline CursorIcon/WindsurfIcon.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JS8ypVfQSFzYVZzkTHhURb
@IgorShevchik IgorShevchik merged commit 9267e86 into main Jul 10, 2026
1 check passed
@IgorShevchik IgorShevchik deleted the sync/nuxt-7bdcb13 branch July 10, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants